// #ifndef VUE3
import Vue from 'vue'
import App from './App';
import uView from '@/uni_modules/uview-ui';
import store from './store'; // store状态管理的实例对象
import HttpRequest from '@/request/request.js'; // 全局请求

Vue.use(uView); // uView的JS库
Vue.config.productionTip = false;
Vue.prototype.$store = store; // 状态管理
Vue.prototype.$request = HttpRequest; // 统一请求接口
App.mpType = 'app';

const app = new Vue({
	...App,
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif